// pages/input/input.js
Page({
    data: {
        value:"",
        lists:[]
    },
    onConfirm(e){
        var value = e.detail.value;
        var lists = this.data.lists;
        lists.push(value);
        this.setData({
            lists,
            value:""
        })
    }
})